﻿using System;
using System.Xml.Linq;
using HigLabo.Net.Extensions;
using System.Collections.Generic;

namespace HigLabo.Net.Twitter
{
    /// <summary>
    /// 
    /// </summary>
    public class Trend : ResponseObject
    {
        /// <summary>
        /// 
        /// </summary>
        public String Events { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String Name { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String PromotedContent { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String Url { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String Query { set; get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public Trend(String jsonText)
        {
            this.SetProperty(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public override void SetProperty(String jsonText)
        {
            var d = this.SetData(jsonText);

            this.Events = d.ToString("events");
            this.Name = d.ToString("name");
            this.Events = d.ToString("promoted_content");
            this.Url = d.ToString("url");
            this.Query = d.ToString("query");
        }
    }
}
